﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using PhotoMgr.src.common;

namespace PhotoMgr.src.database
{
    public partial class Setting
    {
        public string StatusName { 
            get 
            {
                return Global.GetStatusName(Status, false);
            } 
        }
    }

    public partial class Artist
    {
        public string StatusName
        {
            get
            {
                return Global.GetStatusName(Status, false);
            }
        }
    }

    public partial class Category
    {
        public string StatusName
        {
            get
            {
                return Global.GetStatusName(Status, false);
            }
        }
    }

    public partial class Round
    {
        public string StatusName
        {
            get
            {
                return Global.GetStatusName(Status, false);
            }
        }
    }

    public partial class User
    {
        public string StatusName
        {
            get
            {
                return Global.GetStatusName(Status, false);
            }
        }

        public string RoleName
        {
            get
            {
                return Global.GetRoleName((int)RoleCode);
            }
        }
    }

    public partial class Contest
    {
        public string StatusName
        {
            get
            {
                return Global.GetStatusName(Status, true);
            }
        }
    }
}
